<?php

/**
 * lodging components.
 *
 * @package    SchelkinoBiz
 * @subpackage lodging
 * @author     Delight
 */
class lodgingComponents extends sfComponents
{
    public function executeFilterPics(sfWebRequest $request)
    {
        $cri = new Criteria();

        $cri->addAscendingOrderByColumn( LodgingComfortPeer::ID );

        $this->comfort = LodgingComfortPeer::doSelectWithI18n( $cri );
    }

    public function executeDescriptionPics(sfWebRequest $request)
    {
        $cri = new Criteria();

        $cri->addAscendingOrderByColumn( LodgingComfortPeer::ID );

        $this->comfort = LodgingComfortPeer::doSelectWithI18n( $cri );
    }

    public function executeCurrency(sfWebRequest $request)
    {
        $this->currency = CurrencyPeer::doSelect( new Criteria() );
    }
}
